package model;



import java.io.Serializable;

import java.util.Calendar;

import java.util.Observable;



public class User extends Observable implements Serializable{

	/**


	 * 


	 */

	private static final long serialVersionUID = 1L;

	private String name;

	private String ip;

	private String loginName;

	

	public User() {

		Calendar c=Calendar.getInstance();

		int h=c.get(Calendar.HOUR_OF_DAY);

		int m=c.get(Calendar.MINUTE);

		int s=c.get(Calendar.SECOND);

		loginName=h+":"+m+":"+s;

	}

	public String getName() {

		return name;

	}

	public void setName(String name) {

		this.name = name;

	}

	public String getIp() {

		return ip;

	}

	public void setIp(String ip) {

		this.ip = ip;

		setChanged();

		notifyObservers(this);

	}

	public String getLoginName() {

		return loginName;

	}

	

}

